package ch.silviowangler.hockeygame.domain;

import org.springframework.stereotype.Component;

import java.util.Set;

/**
 * @author Silvio Wangler
 * @since 1.0
 *        Date: 19.06.2010
 */
@Component
public interface GenericDao<T> {

    public T find(Long id);

    public T create(T t);

    public Set<T> create(Set<T> ts);

    public T modify(T t);

    public Set<T> modify(Set<T> t);

    public void purge(T t);

    public void purge(Set<T> t);
}
